package com.sunriz.motordrive.mapper;

import com.sunriz.motordrive.domain.DAO.PvHcInfoDAO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: AddMapper
 * Package: com.sunriz.motordrive.mapper
 * Description:
 *
 * @Author BuTang
 * @Create 2024/8/8 13:46
 * @Version 1.0
 */
@Mapper
public interface PvHcMapper {


     /**
      * 添加单条数据
      * @param pvHcInfo 光伏hc单条数据
      */
     void addData(PvHcInfoDAO pvHcInfo);

     /**
      * 删除单条hc数据
      * @param address 寄存器地址
      */
     void deleteByAddress(Integer address);

     /**
      * 修改光伏hc数据
      * @param pvHcInfo 光伏hc数据
      */
     void changeData(PvHcInfoDAO pvHcInfo);

     /**
      * 根据寄存器地址查询光伏hc数据
      * @param address 寄存器地址
      * @return hc数据
      */
      PvHcInfoDAO getByAddress(int address);

     /**
      * 光伏hc的所有寄存器信息
      * @return 光伏信息集合
      */
     List<PvHcInfoDAO> getAllConfig();


}
